package ssm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import ssm.service.CleanDateService;

@Controller
@RequestMapping("/clean")
public class CleanDateController {

    @Autowired
    private CleanDateService cleanDateService;


    @RequestMapping("/track_business")
    @ResponseBody
    public void track_business(){
        //定时任务
        cleanDateService.update_business();
        //初始化任务
        cleanDateService.history_business();
    }


}
